#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin >> n;
    int r[n + 1];
    for(int i = 0; i < n; i++){
        cin >> r[i];
    }
    sort(r,r + n);
    int cou = 0;
    for(int i = 1; i < n;i++){
        if(r[cou] < r[i]){
            cou++;
        }
    }
    cout << n - cou;
    return 0;
}
